#include "externalcmdnotificatorconfig.h"
#include "ui_externalcmdnotificatorconfig.h"

ExternalCmdNotificatorConfig::ExternalCmdNotificatorConfig(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ExternalCmdNotificatorConfig)
{
    ui->setupUi(this);
}

ExternalCmdNotificatorConfig::~ExternalCmdNotificatorConfig()
{
    delete ui;
}

void ExternalCmdNotificatorConfig::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

QString ExternalCmdNotificatorConfig::getCmd() const
{
	return ui->e_cmd->text();
}

void ExternalCmdNotificatorConfig::setCmd(const QString& cmd)
{
	ui->e_cmd->setText(cmd);
}
